<div id="header">
    <div id="hleft">
        <div id="calendar-box">
            <span id="quando">quando:</span>
            <span id="dove">dove:</span>
            <div id="input-date">
                <div type="text" id="datepicker2"></div>
                <p class="calendar">
                    Premi su un giorno del calendario per visualizzarne gli eventi!
                </p>
            </div>
            <div id="zone">
                <?php echo $this->layout()->provincia; ?>
            </div>
        </div>
    </div>
    <!-- logo -->
    <div id="hright">
        <div id="logo">
            <h3 id="top-h3">
                <p class="social"><a href="http://twitter.com/whichclub" class="top-tip">
                        Seguici su twitter!<!--<span>Follow WhichCLub On Twitter</span>--></a></p>
                <p class="partner">
                    <a href="<?php echo $this->url(array(
                                                    'controller'=>'Contact',
                                                    'action'=>'informazioni'),
                                                    'contact',TRUE);
                            ?>" class="top-tip">Hai un Club?
                    </a>
                </p>
            </h3>
            <a title="Serious Booking Events Solutions" href="<?php
                echo $this->url(array(
                                    'controller'=>'Index',
                                    'action'=>'eventi'),
                                    'index', TRUE);
                ?>">
                <img id="logo-img" alt="WhichCLub" src="/images/whichclub.png" />
            </a>
        </div>
        <div id="topnav" class="cpojer-links2">
        <!-- Navigation Menu -->
        <ul id="navigation">
            <li>
                <a href="<?php echo $this->url(array(
                                        'controller'=>'Index',
                                        'action'=>'eventi'),
                                        'index',TRUE);?>">
                Home
                </a>
            </li>
           <li>
                <a href="<?php echo $this->url(array(
                                        'controller'=>'Club',
                                        'action'=>'index'),
                                        'club',TRUE);?>">
                Locali
                </a>
<?php
    require_once "models/Db/Event_db.php";
    $eventHandle    = new Event_db();
    $category = $eventHandle->getAllCategory();

    $line3 = '<ul>';
    foreach ($category as $key=>$category2){
        $categoria2 = trim(str_replace(" ", "", $category2['categoria']));
        if ($category2['id']==3){
            $categoria2 = 'elegancecafe';
        }
        $line3_new = '<li><a href="'. $this->url(array('controller' => 'Index',
                                                        'action'    => 'category',
                                                        'id'        => $categoria2,
                                                       ), 'index', TRUE).'">' . $category2['categoria']
                . '</a></li>';
        $line3 = $line3 . $line3_new;
        }
    $line3 = $line3 . '<li><a href="'. $this->baseUrl() . '/club/'
                . '" >Tutti i locali</a></li></ul>';
    $this->layout()->category = $line3;
?>
                <?php echo $this->layout()->category; ?>
            </li>
            <li>
                <a href="<?php echo $this->url(array(
                                        'controller'=>'news-letter',
                                        'action'=>'index'),
                                        'newsletter',TRUE);?>">
                News Letter
                </a>
            </li>
            <li>
                <a href="<?php echo $this->url(array(
                                        'controller'=>'Contact',
                                        'action'=>'index'),
                                        'contact',TRUE);?>">
                Contatti
                </a>
            </li>
        </ul>
        </div>
    </div><!-- /hright -->
</div><!-- /header -->
<div class="clear"></div>
<div id="fix-rect">
    <div id="rect"></div>
</div>